home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 96 / PC Zone #096.7z / Dppcz1200.mdf / Demos / Gunlok / data1.cab / Program_Executable_Files / scripts / fragcrashboulder.gsh < prev    next >
Text File  |  2000-09-09  |  5KB  |  239 lines

  1. // defines a boulder which has several stages of destructibility
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_fragboulder_GSH
  8. #define INCLUDED_fragboulder_GSH
  9.  
  10. #include "defaults.gsh"
  11.  
  12. ////////////////////////////////////////////////////////////////////////////////////
  13.  
  14. //***SHAPES AND ROLES***//
  15.  
  16. // fifth set of fragbits
  17.  
  18. hierarchy Hcy_fragboulderfrag_e
  19. {
  20.     file    "objects\frag crashboulder frag E.rif"
  21.     name    "fragboulderfrag E"
  22.     hotspot none
  23. }
  24.  
  25. role Rol_fragboulderfrag_e : Rol_PlacedObject
  26. {
  27.     shape            Hcy_fragboulderfrag_e
  28.     identifier        "fragboulderfrag_e"
  29.     frag control    yes
  30.     hit test ignore yes
  31. }
  32.  
  33.  
  34. // demolished boulder and fourth lot of frag bits
  35.  
  36. shape Shp_fragboulder_d
  37. {
  38.        file "objects\frag crashboulder D.rif"
  39.        name "fragboulder D"
  40. }
  41.  
  42. frag data Frg_fragboulder_d    // this creates Rol_fragboulder_d and frag bits
  43. {
  44.     role            Rol_fragboulderfrag_e    
  45.     replace         yes                    // get rid of the old boulder
  46.     scale            7
  47.     symmetric        no
  48. }
  49.  
  50. role Rol_fragboulder_d : Rol_PlacedObject
  51. {
  52.     shape            Shp_fragboulder_d
  53.     identifier        "fragboulder_d"
  54.     destructibility        Frg_fragboulder_d
  55.     armour            2
  56.     ai blocker
  57. }
  58.  
  59. hierarchy Hcy_fragboulderfrag_d
  60. {
  61.     file    "objects\frag crashboulder frag D.rif"
  62.     name    "fragboulderfrag D"
  63.     hotspot none
  64. }
  65.  
  66. role Rol_fragboulderfrag_d : Rol_PlacedObject
  67. {
  68.     shape            Hcy_fragboulderfrag_d
  69.     identifier        "fragboulderfrag_d"
  70.     frag control    yes
  71.     hit test ignore yes
  72. }
  73.  
  74.  
  75.  
  76. // damaged boulder and third lot of frag bits
  77.  
  78. shape Shp_fragboulder_c
  79. {
  80.        file "objects\frag crashboulder C.rif"
  81.        name "fragboulder C"
  82. }
  83.  
  84. frag data Frg_fragboulder_c    // this creates Rol_fragboulder_c and frag bits
  85. {
  86.     role            Rol_fragboulderfrag_d
  87.     replace role        Rol_fragboulder_d    
  88.     replace         yes                    // get rid of the old boulder
  89.     scale            7
  90.     symmetric        no
  91. }
  92.  
  93. role Rol_fragboulder_c : Rol_PlacedObject
  94. {
  95.     shape            Shp_fragboulder_c
  96.     identifier        "fragboulder_c"
  97.     destructibility        Frg_fragboulder_c
  98.     armour            2
  99.     ai blocker
  100. }
  101.  
  102. hierarchy Hcy_fragboulderfrag_c
  103. {
  104.     file    "objects\frag crashboulder frag C.rif"
  105.     name    "fragboulderfrag C"
  106.     hotspot none
  107. }
  108.  
  109. role Rol_fragboulderfrag_c : Rol_PlacedObject
  110. {
  111.     shape            Hcy_fragboulderfrag_c
  112.     identifier        "fragboulderfrag_c"
  113.     frag control    yes
  114.     hit test ignore yes
  115. }
  116.  
  117.  
  118.  
  119.  
  120.  
  121. // damaged boulder and second lot of frag bits
  122.  
  123. shape Shp_fragboulder_b
  124. {
  125.        file "objects\frag crashboulder B.rif"
  126.        name "fragboulder B"
  127. }
  128.  
  129. frag data Frg_fragboulder_b    // this creates Rol_fragboulder_b and frag bits
  130. {
  131.     role            Rol_fragboulderfrag_c
  132.     replace role        Rol_fragboulder_c
  133.     replace         yes                    // get rid of the old boulder
  134.     scale            7
  135.     symmetric        no
  136. }
  137.  
  138. role Rol_fragboulder_b : Rol_PlacedObject
  139. {
  140.     shape            Shp_fragboulder_b
  141.     identifier        "fragboulder_b"
  142.     destructibility        Frg_fragboulder_b
  143.     armour            2
  144.     ai blocker
  145. }
  146.  
  147. hierarchy Hcy_fragboulderfrag_b
  148. {
  149.     file    "objects\frag crashboulder frag B.rif"
  150.     name    "fragboulderfrag B"
  151.     hotspot none
  152. }
  153.  
  154. role Rol_fragboulderfrag_b : Rol_PlacedObject
  155. {
  156.     shape            Hcy_fragboulderfrag_b
  157.     identifier        "fragboulderfrag_b"
  158.     frag control    yes
  159.     hit test ignore yes
  160. }
  161.  
  162.  
  163.  
  164.  
  165. // damaged boulder and first lot of frag bits
  166.  
  167. shape Shp_fragboulder_a
  168. {
  169.        file "objects\frag crashboulder A.rif"
  170.        name "fragboulder A"
  171. }
  172.  
  173. frag data Frg_fragboulder_a    // this creates Rol_fragboulder_a and frag bits
  174. {
  175.     role            Rol_fragboulderfrag_b    
  176.     replace role        Rol_fragboulder_b
  177.     replace         yes                    // get rid of the old boulder
  178.     scale            7
  179.     symmetric        no
  180. }
  181.  
  182. role Rol_fragboulder_a : Rol_PlacedObject
  183. {
  184.     shape            Shp_fragboulder_a
  185.     identifier        "fragboulder_a"
  186.     destructibility        Frg_fragboulder_a
  187.     armour            2
  188.     ai blocker
  189. }
  190.  
  191. hierarchy Hcy_fragboulderfrag_a
  192. {
  193.     file    "objects\frag crashboulder frag A.rif"
  194.     name    "fragboulderfrag A"
  195.     hotspot none
  196. }
  197.  
  198. role Rol_fragboulderfrag_a : Rol_PlacedObject
  199. {
  200.     shape            Hcy_fragboulderfrag_a
  201.     identifier        "fragboulderfrag_a"
  202.     frag control    yes
  203.     hit test ignore yes
  204. }
  205.  
  206.  
  207.  
  208. // the whole boulder
  209.  
  210. shape Shp_fragboulder
  211. {
  212.        file "objects\frag crashboulder.rif"
  213.        name "fragboulder"
  214. }
  215.  
  216. frag data Frg_fragboulder    // this creates Rol_fragboulder_a and frag bits
  217. {
  218.     role            Rol_fragboulderfrag_a
  219.     replace role        Rol_fragboulder_a
  220.     replace         yes                    // get rid of the old boulder
  221.     scale            7
  222.     symmetric        no
  223. }
  224.  
  225. role Rol_fragboulder : Rol_PlacedObject
  226. {
  227.     shape            Shp_fragboulder
  228.     identifier        "fragboulder"
  229.     destructibility        Frg_fragboulder
  230.     armour            2
  231.     ai blocker
  232. }
  233.  
  234.  
  235. ////////////////////////////////////////////////////////////////////////////////////
  236.  
  237. // end wrapper - for preventing multiple or recursive inclusions
  238. #endif // !INCLUDED_WALL_MULTIFRAG_GSH
  239.